package com.company.management.result;

import lombok.Data;

import java.io.Serializable;
@Data
public class Result implements Serializable {

    private Integer code;  //编码：200成功

    private String msg;    //错误信息

    private Object data;   //数据


    public Result(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Result(int code, Object data) {
        this.code = code;
        this.data = data;
    }

    public Result(int code, Object data, String msg) {
        this.code = code;
        this.data = data;
        this.msg = msg;
    }



}
